/**
 * Copyright &copy; 2020 <a href="https://github.com/somowhere/exam-system">exam-system</a> All rights reserved.
 */
package com.shanhesoft.java.modules.exam.repository;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.shanhesoft.java.common.core.vo.PageModel;
import com.shanhesoft.java.common.persistence.repository.BaseRepository;
import com.shanhesoft.java.modules.exam.domain.OjSubmissions;
import com.shanhesoft.java.modules.exam.domain.vo.OjSubmissionsVo;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 提交记录Repository 提交记录
 * @author admin
 * @version 2020-09-26 20:35:59
 */
public interface OjSubmissionsRepository extends BaseRepository<OjSubmissions> {
	public IPage<OjSubmissionsVo> findSubmissionVoPage(PageModel pm, @Param(Constants.WRAPPER) QueryWrapper wrapper);
	public OjSubmissionsVo findSubmissionVoById(String id);
	public IPage<Map<String, Object>> findSubmissionUserVoById(PageModel pm);
}
